<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<?php

	$con=mysql_connect('localhost','root','');
	if(!$con)
	{
  	die('could not connect:'.mysql_error());
  	}
  	mysql_select_db("ETrawelMart",$con);
  
  	$name=$_POST['name'];
  	$gender=$_POST['gender'];
	$email=$_POST['email'];
	$contact=$_POST['contact'];
	$comments=$_POST['comments'];
	
	$sql="INSERT INTO feedback(name,gender,email,contact,comments) VALUES('$name','$gender','$email','$contact','$comments')"; 
	
	if(!mysql_query($sql,$con))
  {
  die('error:'.mysql_error());
  }
  #echo "1 record added";
  mysql_close($con);

  ?>
<script language="javascript"> 
		 alert("Thank you for your feedback, it is highly appreciated"); window.location.href='home.html'; </script> 

</head>

<body>

</body>
</html>